package common;


import android.os.Environment;

import java.io.File;

/**
 * Created by admin on 2017/2/13.
 * 放置常量
 */

public class Constant {
    //请求码
    public static final int LOGIN_REQUEST_CODE = 800;

    //返回码
    public static final int PAY_SUCCESS = 2;//支付成功的回调

    //短信验证码
    public static final String SMS_APPKEY = "1b891fa6fa950";
    public static final String SMS_SECRET = "99cb5c4b257b1f6cdec448e80648440b";
    public static final String CHINA_CODE = "86";

    //文件夹
    public static final String APP_STORE_PATH = Environment.getExternalStorageDirectory()+ File.separator+"xuegengwang";
    public static final String DB_DIR = APP_STORE_PATH + File.separator + "db";//数据库存储文件夹
    public static final String CACHE_DIR = APP_STORE_PATH + File.separator + "Cache";//缓存文件夹
    public static final String VOLUNTEERS_DIR = APP_STORE_PATH + File.separator + "volunteers";//志愿者存储文件夹
    public static final String PICTURE_DIR = APP_STORE_PATH + File.separator + "picture"+File.separator+"Cache";//志愿者存储文件夹
    public static final String APK_DIR = APP_STORE_PATH + File.separator + "apk";//更新安装包存储文件夹

    //sp
    public static final String BASE_SP = "xuegengwang";
    public static final String IS_FIRST_LOADED = "IS_FIRST_LOADED";//是否第一次登陆
    public static final String USER_ID = "USER_ID";//用户id
    public static final String CLIENTID = "clientid";//用户id
    public static final String LAST_VERSION = "last_version";//最新版本
    public static final String TOKEN = "token";//最新版本

    //http地址
    public static final String BaseUrl = "http://xuegengwang.com/api/app_api/page/";
    public static final String MAIN_INDEX = BaseUrl + "index";//首页
    public static final String HOTCOLLEGE = BaseUrl + "hotcollege";//热门高校
    public static final String CONSULTERDETAIL = BaseUrl + "consulterDetail";//志愿者详情
    public static final String DEVICEINFO = BaseUrl + "deviceinfo";//上传设备信息
    public static final String CONSULT = BaseUrl + "consult";//提问首页
    public static final String VOLUNTEER_LIST = BaseUrl + "consulterlist";//志愿者列表
    public static final String COLLEGELIST = BaseUrl + "collegelist";//高校列表
    public static final String COLLEGEDETAIL = BaseUrl + "collegeDetail";//高校首页
    public static final String COLLEGEATTENTION = BaseUrl + "collegeAttention";//关注
    public static final String SELECTPROV = BaseUrl + "selectprov";//获取省份
    public static final String SELECTMAJOR = BaseUrl + "selectmajor";//获取专业
    public static final String ADMISSION = BaseUrl + "admission";//招生信息
    public static final String SHOWBLOG = BaseUrl + "showblog";//显示帖子
    public static final String UPLOADIMAGE = BaseUrl + "uploadimage";//上传图片
    public static final String PRISEBLOG = BaseUrl + "priseblog";//点赞
    public static final String PUBLISH = BaseUrl + "publish";//发布帖子
    public static final String BLOGDETAIL = BaseUrl + "blogdetail";//帖子详情
    public static final String ATTENTIONTOPIC = BaseUrl + "attentionTopic";//关注帖子
    public static final String COMMENTBLOG = BaseUrl + "commentblog";//评论
    public static final String SECONDCOMMENT = BaseUrl + "secondComment";//获取二级评论
    public static final String DELETEBLOG = BaseUrl + "deleteblog";//删除帖子
    public static final String EXPERTATTENTION = BaseUrl + "expertAttention";//关注志愿者
    public static final String DELETECOMMENT = BaseUrl + "deleteComment";//删除评论
    public static final String TOPICATTENTION = BaseUrl + "topicAttention";//关注取关话题
    public static final String COMPLETEINFO = BaseUrl + "completeInfo";//完善信息
    public static final String NEWLIST = BaseUrl + "newslist";//资讯获取
    public static final String PERSONALINFO = BaseUrl + "personalinfo";//个人信息
    public static final String HOMEPAGE = BaseUrl + "homePage";//个人主页(别人看)
    public static final String PERSONALDETAIL = BaseUrl + "personalDetail";//个人信息详情
    public static final String SIGNIN = BaseUrl + "signIn";//签到
    public static final String ATTENTIONINFO = BaseUrl + "attentionInfo";//展现个人关注的详情页
    public static final String EVALUTESURVEY = BaseUrl + "evaluteSurvey";//评估概况
    public static final String EVALUTELIST = BaseUrl + "evaluteList";//评估高校列表
    public static final String COMMENTEXPERT = BaseUrl + "commentExpert";//评估高校列表
    public static final String EVALUTECOLLEGEDETAIL = BaseUrl + "evaluteCollegeDetail";//评估高校详情
    public static final String SUGGESTION = BaseUrl + "suggestion";//提交意见
    public static final String BIND = BaseUrl + "bind";//绑定微信||支付宝
    public static final String SHARE = BaseUrl + "share";//分享内容
    public static final String WXLOGINSUCCESS = BaseUrl + "wxloginsuccess";//分享内容
    public static final String COMMITWXORDER = BaseUrl + "commitWxOrder";//微信支付
    public static final String QUERYORDER = BaseUrl + "queryOrder";//微信查询订单
    public static final String WATCHALIANSWER = BaseUrl + "watchaliAnswer";//支付宝查看问题
    public static final String ALISUCCESS = BaseUrl + "aliSuccess";//支付宝查询订单
    public static final String COMMITALIORDER = BaseUrl + "commitAliOrder";//支付宝支付
    public static final String SUBMITPAY = BaseUrl + "submitPay";//3000/5000志愿填报付费
    public static final String PREWITHDRAW = BaseUrl + "prewithdraw";//发起提现
    public static final String COMPANYPAYMENT = BaseUrl + "companyPayment";//取现
    public static final String RECORD = BaseUrl + "record";//取现记录
    public static final String WATCHANSWER = BaseUrl + "watchAnswer";//微信查看问题
    public static final String LOGOUT = BaseUrl + "logout";//登出
    public static final String REGESITER = BaseUrl + "reg";//注册
    public static final String LOGIN = BaseUrl + "login";//登录
    public static final String RESETPSW = BaseUrl + "resetPsw";//修改密码
    public static final String ASK = BaseUrl + "ask";//提问
    public static final String QUESTIONLIST = BaseUrl + "questionlist";//我的提问列表
    public static final String DIALOGDETAIL = BaseUrl + "dialogDetail";//问题详情
    public static final String COMMENTDIALOG = BaseUrl + "commentDialog";//评论问题
    public static final String DIALOGPRISE = BaseUrl + "dialogPrise";//点赞问题
    public static final String SHAREEVALUATE = BaseUrl + "shareEvaluate";//分享志愿评估
    public static final String SHAREEVALUATESUCCESS = BaseUrl + "shareEvaluateSuccess";//分享志愿评估成功
    public static final String MODIFYEVALUATE = BaseUrl + "modifyEvaluate";//重新修改个人信息

    public static final String GETMENU = BaseUrl + "getMenu";//获取首页菜单

    public static final String SUBMITINFO = BaseUrl + "submitInfo";//3800/5800/8800志愿评估提交个人信息
    public static final String SUBMITCOLLEGE = BaseUrl + "submitCollege";//3800/5800/8800志愿评估提交高校信息
    public static final String USECARD = BaseUrl + "useCard";//使用今朝志愿填报卡
    public static final String QUESTION = BaseUrl + "question";//问卷调查
    public static final String MUTABLESELECTPROV = BaseUrl + "mutableSelectProv";//获取问卷调查的省份
    public static final String MUTABLESELECTMAJOR = BaseUrl + "mutableSelectMajor";//获取问卷调查的专业
    public static final String QU_MSGLIST = BaseUrl + "qu_msglist";//获取志愿填报问答列表
    public static final String SUBMITMSG = BaseUrl + "submitMsg";//提交志愿填报问题
    public static final String CHANGEORDER = BaseUrl + "changeOrder";//提交志愿填报问题
    public static final String VOLUNTEERS = BaseUrl + "volunteers";//获取志愿者列表


    public static final String UPDATE_URL = "http://app.xuegengwang.com/jinzhaoshengxue.apk";//更新下载地址


    public static final int ERROR_CODE_SUCCESS = 999;//成功的返回码
    public static final int ERROR_CODE_FAILD = 998;//错误
    public static final int ERROR_CODE_FINISH = 997;//完成
    public static final int ERROR_CODE_UPLOADING = 996;//上传中

    public static final int DATA_COUNT = 10;//返回数组的大小，用于判断是否有更多数据

    public static final String ALERT_Y = "Y";//需要展示提示信息

    //志愿者界面
    public static final int VOLUNTEER_ANSWER = 0;//志愿者界面回答问题
    public static final int VOLUNTEER_EVALUATE = 1;//志愿者界面评论

    //志愿者类型
    public static final String VOLUNTEER_TYPE_NORMAL = "normal";
    public static final String VOLUNTEER_TYPE_OFFICIAL = "official";
    public static final String VOLUNTEER_TYPE_VIP = "vip";


    //高校首页
    public static final String NO_MAJOR_FILTER = "不限";
    public static final String DEFALUTE_PROV = "广东省";
    public static final String DEFAULTE_TYPE = "文科";

    public static final String VOLUNTEER_TYPE_OFFICIAL_NAME = "招生办认证咨询员";
    public static final String VOLUNTEER_TYPE_NORMAL_NAME = "学长学姐";
    public static final String VOLUNTEER_TYPE_VIP_NAME = "校园百事通";

    //web交互代码
//    public static final String NEWS_URL = "http://xuegengwang.com/jinzhao/page/news.html?";//新闻的url

    //微信
    public static final String WEIXIN_APP_ID = "wx360ad4e8b5f52948";
    public static final String WEIXIN_APPSERCET = "61c820038db963eb4d3284d87ffb9539";
    public static final String WEIXIN_ACITION_HASLOAD = "weixinhas_load";//登录广播
    public static final String WEIXIN_ACITION_HASBIND = "weixinhas_bind";//绑定广播
    public static final String WEIXIN_ACITION_HASPAY = "weixin_acition_haspay";//支付广播

    //广播
    public static final String ACITION_FOURFRAGMENT = "acition_fourfragment";//跳转到个人主页
    public static final String ACTION_NEW_VERSION = "action_new_version";//新版本
    public static final String ACTION_LOGIN = "action_login";//登录完成
    public static final String ACTION_UPDATE_PERSONAL_INFO = "action_update_personal_info";//通知个人中心修改

    public static final String ACTION_DOWNLOAD_FILE = "download_file";//下载文件
    public static final String ACTION_DOWNLOAD_FILE_ERROR = "download_file_error";//下载错误
    public static final String ACTION_DOWNLOAD_SUCCESS = "action_download_success";//下载成功
    public static final String ACTION_DOWNLOAD_ING = "action_download_ing";//下载中
    public static final String ACTION_DOWNLOAD_CANCEL = "action_download_cancel";//取消下载
    public static final String ACTION_DOWNLOAD_STARTED = "action_download_started";//下载开始

    //支付
    public static final String QUESTIONWATCH = "questionwatch";//付费看问题
    public static final int QUESTIONWATCH_PRICE = 50;//付费看问题
    public static final String QUESTIONPUBLIC = "questionpublic";//公开提问
    public static final int QUESTIONPUBLIC_PRICE = 1000;//公开提问
    public static final String QUESTIONPRIVATE = "questionprivate";//私密提问
    public static final int QUESTIONPRIVATE_PRICE = 100;//私密提问
    public static final int EVALUTE_PRICE = 20000;//200块
    public static final String SUBMIT = "submit";//3800/5800//8800志愿评估
    public static final int SUBMIT_PRICE_3800 = 380000;//3800志愿评估
    public static final int SUBMIT_PRICE_5800 = 580000;//5800志愿评估
    public static final int SUBMIT_PRICE_8800 = 880000;//8800志愿评估
    public static final double DISCOUNT = 0.9;//9折
}
